/**********************************************************************/
/*   ____  ____                                                       */
/*  /   /\/   /                                                       */
/* /___/  \  /                                                        */
/* \   \   \/                                                       */
/*  \   \        Copyright (c) 2003-2009 Xilinx, Inc.                */
/*  /   /          All Right Reserved.                                 */
/* /---/   /\                                                         */
/* \   \  /  \                                                      */
/*  \___\/\___\                                                    */
/***********************************************************************/

/* This file is designed for use with ISim build 0x1cce1bb2 */

#define XSI_HIDE_SYMBOL_SPEC true
#include "xsi.h"
#include <memory.h>
#ifdef __GNUC__
#include <stdlib.h>
#else
#include <malloc.h>
#define alloca _alloca
#endif
static const char *ng0 = "C:/Users/maye/Desktop/taller/barcos/memoria_juego.v";
static int ng1[] = {3, 0};
static int ng2[] = {5, 0};
static int ng3[] = {1, 0};



static void Initial_29_0(char *t0)
{
    char t3[8];
    char t4[8];
    char *t1;
    char *t2;
    char *t5;
    char *t6;
    char *t7;
    char *t8;
    char *t9;
    char *t10;
    char *t11;
    char *t12;
    char *t13;
    unsigned int t14;
    int t15;
    char *t16;
    unsigned int t17;
    int t18;
    int t19;
    unsigned int t20;
    unsigned int t21;
    int t22;
    int t23;

LAB0:    xsi_set_current_line(29, ng0);

LAB2:    xsi_set_current_line(30, ng0);
    t1 = ((char*)((ng1)));
    t2 = (t0 + 2088);
    t5 = (t0 + 2088);
    t6 = (t5 + 72U);
    t7 = *((char **)t6);
    t8 = (t0 + 2088);
    t9 = (t8 + 64U);
    t10 = *((char **)t9);
    t11 = ((char*)((ng2)));
    t12 = ((char*)((ng3)));
    xsi_vlog_generic_convert_array_indices(t3, t4, t7, t10, 2, 2, t11, 32, 1, t12, 32, 1);
    t13 = (t3 + 4);
    t14 = *((unsigned int *)t13);
    t15 = (!(t14));
    t16 = (t4 + 4);
    t17 = *((unsigned int *)t16);
    t18 = (!(t17));
    t19 = (t15 && t18);
    if (t19 == 1)
        goto LAB3;

LAB4:    xsi_set_current_line(31, ng0);
    t1 = (t0 + 2088);
    t2 = (t1 + 56U);
    t5 = *((char **)t2);
    t6 = (t0 + 2088);
    t7 = (t6 + 72U);
    t8 = *((char **)t7);
    t9 = (t0 + 2088);
    t10 = (t9 + 64U);
    t11 = *((char **)t10);
    t12 = ((char*)((ng2)));
    t13 = ((char*)((ng3)));
    xsi_vlog_generic_get_array_select_value(t3, 4, t5, t8, t11, 2, 2, t12, 32, 1, t13, 32, 1);
    t16 = (t0 + 1928);
    xsi_vlogvar_assign_value(t16, t3, 0, 0, 4);

LAB1:    return;
LAB3:    t20 = *((unsigned int *)t3);
    t21 = *((unsigned int *)t4);
    t22 = (t20 - t21);
    t23 = (t22 + 1);
    xsi_vlogvar_assign_value(t2, t1, 0, *((unsigned int *)t4), t23);
    goto LAB4;

}


extern void work_m_00000000004165259237_4069023508_init()
{
	static char *pe[] = {(void *)Initial_29_0};
	xsi_register_didat("work_m_00000000004165259237_4069023508", "isim/prubemen_isim_beh.exe.sim/work/m_00000000004165259237_4069023508.didat");
	xsi_register_executes(pe);
}
